package br.pucrio.inf.lac.konoha.hyuga.command;

import java.io.Serializable;

import com.espertech.esper.client.EPServiceProvider;

public abstract class Command implements Serializable {
	
	protected String commandSTR;
	protected transient EPServiceProvider cepEngine;
	
	public Command(String commandSTR) {
        this(commandSTR, null);
    }
	
	public Command(String commandSTR, EPServiceProvider cepEngine) {
		this.commandSTR = commandSTR;
		this.cepEngine  = cepEngine;
	}
	
	public abstract void execute();
	
	public String getCommandSTR() {
        return commandSTR;
    }
	
	public EPServiceProvider getCepEngine() {
        return cepEngine;
    }
}
